package cc.rengu.redp.flowable.delegate;

import com.alibaba.fastjson.JSONObject;
import lombok.Getter;

public class DelegateExceptionButSaveData extends Exception {

    @Getter
    private JSONObject saveData;

    public DelegateExceptionButSaveData(JSONObject saveData, String message) {
        super(message);
        this.saveData = saveData;
    }

    DelegateExceptionButSaveData(JSONObject saveData, String message, Throwable cause) {
        super(message, cause);
        this.saveData = saveData;
    }
}
